package com.cmc.cloud.cmclink.doc.vo.routematchcompanyvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 路径的经营主体 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RouteMatchCompanyBaseVO {

    @Schema(description = "路径ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18660")
    @NotNull(message = "{RouteMatchCompanyBaseVO.routeId.NotNull}")
    private Long routeId;

    @Schema(description = "航线代码")
    @Length(max = 50, message = "{RouteMatchCompanyBaseVO.laneCode.Length}")
    private String laneCode;

    @Schema(description = "经营主体", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{RouteMatchCompanyBaseVO.company.NotBlank}")
    @Length(max = 5, message = "{RouteMatchCompanyBaseVO.company.Length}")
    private String company;

    @Schema(description = "路线类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{RouteMatchCompanyBaseVO.routeDesc.NotBlank}")
    @Length(max = 500, message = "{RouteMatchCompanyBaseVO.routeDesc.Length}")
    private String routeDesc;

    @Schema(description = "路线类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{RouteMatchCompanyBaseVO.routeType.NotBlank}")
    @Length(max = 100, message = "{RouteMatchCompanyBaseVO.routeType.Length}")
    private String routeType;

}
